/*
 * @version: 1.0
 * @Author: zhl
 * @Date: 2021-09-23 09:02:45
 * @LastEditors: zhl
 * @LastEditTime: 2022-01-14 13:24:19
 * @Description: 文件实现描述
 */
#ifndef __APP_H__
#define __APP_H__


#include <unordered_map>
#include <string>
#include <memory>

#include "global_data_struct.h"
#include "CModuleManager.h"
#include "CConfigManager.h"
#include "SerialProxy.h"

extern char     **g_argv;
extern char     mosquitto_addr[64];
extern uint16_t mosquitto_port;
extern char     cloud_mosquitto_addr[64];
extern uint16_t cloud_mosquitto_port;
extern char     cloud_username[32];
extern char     cloud_password[32];
extern int      g_no_recvdata_time;
extern bool     g_cangzhou_patch_enable;
extern bool     g_104north_enable;

extern std::unordered_map<std::string, CModuleManager *> modules;




#endif /* __APP_H__ */